
//活动-路由

"use strict";

module.exports = app => {
  const { router, controller } = app;
  router.get("/tube/admin/queryActivitys", controller.cActivitys.pc_c_query_activitys);
  router.post("/tube/admin/createActivitys", controller.cActivitys.pc_c_create_activitys);
  router.put("/tube/admin/updateActivitys", controller.cActivitys.pc_c_update_activitys);
  router.delete("/tube/admin/deleteActivitys", controller.cActivitys.pc_c_delete_activitys);
  router.get("/tube/admin/queryActivitysProducts", controller.cActivitys.pc_c_queryActivityProducts);
  //挂载活动商品
  router.post('/tube/admin/selectActivitysProducts', controller.cActivitys.pc_c_batchMount);
  //移除活动商品
  router.post('/tube/admin/removeActivitysProducts', controller.cActivitys.pc_c_batchRemove);

  router.get("/tube/wa/queryActivitys", controller.cActivitys.wa_c_queryActivitys);
};